package com.ruoyi.fuw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fuw.mapper.FuwPersonMapper;
import com.ruoyi.fuw.domain.FuwPerson;
import com.ruoyi.fuw.service.IFuwPersonService;

/**
 * 用户信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-09
 */
@Service
public class FuwPersonServiceImpl implements IFuwPersonService 
{
    @Autowired
    private FuwPersonMapper fuwPersonMapper;

    /**
     * 查询用户信息
     * 
     * @param personId 用户信息主键
     * @return 用户信息
     */
    @Override
    public FuwPerson selectFuwPersonByPersonId(String personId)
    {
        return fuwPersonMapper.selectFuwPersonByPersonId(personId);
    }

    /**
     * 查询用户信息列表
     * 
     * @param fuwPerson 用户信息
     * @return 用户信息
     */
    @Override
    public List<FuwPerson> selectFuwPersonList(FuwPerson fuwPerson)
    {
        return fuwPersonMapper.selectFuwPersonList(fuwPerson);
    }

    /**
     * 新增用户信息
     * 
     * @param fuwPerson 用户信息
     * @return 结果
     */
    @Override
    public int insertFuwPerson(FuwPerson fuwPerson)
    {
        return fuwPersonMapper.insertFuwPerson(fuwPerson);
    }

    /**
     * 修改用户信息
     * 
     * @param fuwPerson 用户信息
     * @return 结果
     */
    @Override
    public int updateFuwPerson(FuwPerson fuwPerson)
    {
        return fuwPersonMapper.updateFuwPerson(fuwPerson);
    }

    /**
     * 批量删除用户信息
     * 
     * @param personIds 需要删除的用户信息主键
     * @return 结果
     */
    @Override
    public int deleteFuwPersonByPersonIds(String[] personIds)
    {
        return fuwPersonMapper.deleteFuwPersonByPersonIds(personIds);
    }

    /**
     * 删除用户信息信息
     * 
     * @param personId 用户信息主键
     * @return 结果
     */
    @Override
    public int deleteFuwPersonByPersonId(String personId)
    {
        return fuwPersonMapper.deleteFuwPersonByPersonId(personId);
    }
}
